{% extends 'oratk_app/master.html' %}
{% block tag_left %}
    {% include 'oratk_app/tag_left_user.html' %}
{% endblock %}
{% block title %}
    <title>ORATK</title>
{% endblock %}
{% block userinfo %}
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <h2 class="page-header">ora查询项管理-添加功能页</h2>
        <form class="form-horizontal" action="{{ request.path }}" method="post">
            <div class="form-group">
                <label class="col-sm-2 control-label">name：</label>
                <div class="col-sm-10">
                    <input type="text" style="width:300px;" class="form-control" name="add_name" placeholder="功能名称">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">sqltext：</label>
                {#                <div class="col-sm-10">#}
                {#                    <input type="text" style="width:300px;" class="form-control" name="add_sqltext"#}
                {#                           placeholder="sqltext"><span style="color:red">&nbsp&nbsp&nbsp&nbsp&nbsp格式:  [('sqltext1','select 1 from dual'),('sqltext2','select 2 from dual')]</span>#}
                {#                </div>#}
                <div class="col-sm-10">
                    <textarea type="text" style="width:330px;" class="form-control" name="add_sqltext"
                              placeholder="sqltext"></textarea> <span style="color:red"> &nbsp&nbsp&nbsp&nbsp&nbsp格式:  [('sqltext1','select 1 from dual'),('sqltext2','select 2 from dual')]</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">desc：</label>
                <div class="col-sm-10">
                    <input type="text" style="width:300px;" class="form-control" name="add_desc" placeholder="描述">
                </div>
            </div>
            <div class="form-group" id="limit_status_div">
                <label class="col-sm-2 control-label">args_mark(是否有参数)：</label>
                <div class="col-sm-3">
                    <select class="form-control" id="args_mark" name="add_args_mark">
                        <option>否</option>
                        <option>是</option>
                    </select>
                </div>
            </div>
            <div class="form-group" id="limit_status_div">
                <label class="col-sm-2 control-label">args_count：</label>
                <div class="col-sm-3">
                    <select class="form-control" id="args_mark" name="add_args_count">
                        <option>0</option>
                        <option>1</option>
                        <option>2</option>
                        <option>3</option>
                    </select>
                </div>
            </div>
            {#            <div class="form-group">#}
            {#                <label class="col-sm-2 control-label">args_type：</label>#}
            {#                <div class="col-sm-10">#}
            {#                    <input type="text" style="width:300px;" class="form-control" name="add_args_type"#}
            {#                           placeholder="参数类型">#}
            {#                </div>#}
            {#            </div>#}
            {#            <div class="form-group">#}
            {#                <label class="col-sm-2 control-label">args_status：</label>#}
            {#                <div class="col-sm-10">#}
            {#                    <input type="text" style="width:300px;" class="form-control" name="add_args_status"#}
            {#                           placeholder="参数状态">#}
            {#                </div>#}
            {#            </div>#}
            <div class="form-group">
                <label class="col-sm-2 control-label">args_val：</label>
                <div class="col-sm-10">
                    <input type="text" style="width:300px;" class="form-control" name="add_args_val" placeholder="参数内容">
                    <span style="color:red">&nbsp&nbsp&nbsp&nbsp&nbsp提示:多个数值用";"分开</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">exec_type(执行方式)：</label>
                <div class="col-sm-3">
                    {#                    <select   class="form-control" id="exec_type" name="add_exec_type"  multiple="multiple">#}
                    <select class="form-control" id="exec_type" name="add_exec_type" >
                        <option>sql执行</option>
{#                        <option>shell执行</option>#}
                    </select>
                </div>
            </div>
            <div class="form-group" id="status">
                <label class="col-sm-2 control-label">status：</label>
                <div class="col-sm-3">
                    <select class="form-control" id="status" name="add_status">
                        <option>active</option>
                        <option>locked</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">remake：</label>
                <div class="col-sm-10">
                    <input type="text" style="width:300px;" class="form-control" name="add_remake"
                           placeholder="备注">
                </div>
            </div>
            <div class="col-sm-10">
                {#                <button type="submit" class="btn ">提交</button>#}
                <div style="text-align:center;vertical-align:middle;"><input type="submit" style="text-align:center;"
                                                                             class="btn" value="提交"></div>
            </div>
        </form>
    </div>
{% endblock %}

